{include 'header.tpl'}
<div class="contant2">
    <div class="vipcenter">
        <div class="vipheader">
            <a href="#">
                <div class="touxiang"><img src="{$user.avatar}" alt=""></div>
                <div class="name">{$user.username}</div>
            </a>
        </div>
        <div class="order_list cf">
            <ul>
                <li>
                    <a href="/order/myorder?status=1">
                        <span class="order_img">
                            <img src="/mall2/images/order_list01.png">
                            <div class="shot_n_i5" id="nopay_order_num"style="display: none">0</div>
                        </span>
                        <span>待付款</span>
                    </a>
                </li>
                <li>
                    <a href="/order/myorder?status=2">
                        <span class="order_img">
                            <img src="/mall2/images/order_list02.png">
                            <div class="shot_n_i5" id="nojd_order_num" style="display: none">0</div>
                        </span>
                        <span>待接单</span>
                    </a>
                </li>
                <li>
                    <a href="/order/myorder?status=3">
                        <span class="order_img">
                            <img src="/mall2/images/order_list03.png">
                            <div class="shot_n_i5" id="jd_order_num" style="display: none">0</div>
                        </span>
                        <span>已接单</span>
                    </a>
                </li>
                <li>
                    <a href="/order/myorder?status=4">
                        <span class="order_img">
                            <img src="/mall2/images/order_list04.png">
                            <div class="shot_n_i5" id="ps_order_num" style="display: none">0</div>
                        </span>
                        <span>派送中</span>
                    </a>
                </li>
                <li>
                    <a href="/order/myorder?status=5">
                        <span class="order_img">
                            <img src="/mall2/images/order_list05.png">
                        </span>
                        <span>已完成</span>
                    </a>
                </li>
            </ul>
        </div>
        <ul class="vipul">
            <li>
                <a href="/order/myorder">
                    <div class="icc"><i class="iconfont icon-wodedingdan"></i></div>
                    <div class="lzz">全部订单</div>
                    <div class="vzz">{$order_num}</div>
                    <div class="rizi lvzi"><i class="iconfont icon-jiantouri"></i></div>
                </a>
            </li>
            <li>
                <a href="/address/list">
                    <div class="icc"><i class="iconfont icon-shouhuodizhi"></i></div>
                    <div class="lzz">收货地址</div>
                    <div class="rizi"><i class="iconfont icon-jiantouri"></i></div>
                </a>
            </li>
        </ul>
        <div class="mall_prd person_list">
            <ul class="cf">
                {foreach from=$goodsList item=item}
                    <li>
                        <div class="mall_prd_item">
                            <div class="mall_prd_pic"><a  href="/index/goodDetail?id={$item.auto_id}"><img src="{Service_Attach::getInstance()->getThumbUrl($item.img2, 350, 350)}"/></a></div>
                            <div class="mall_prd_tlt"><a  href="/index/goodDetail?id={$item.auto_id}">{$item.title}</a></div>
                            <div class="mall_pro_yj">
                                <span class="pro_rs"><em>￥{$item.price_new}</em></span>
                            </div>
                        </div>
                    </li>
                {/foreach}
            </ul>
        </div>
    </div>
</div>
<script>
    $(function () {
        $.post('/user/orderNum',function(data){
            for(var name in data){
                if(data[name]>0) $('#'+name).text(data[name]).show();
            }
        });
    });
</script>
{include 'footer.tpl'}